import request from '../request'

//订单列表
export const queryOrderList = params => request.globalRequest(`/api/v1/appOrder/queryOrderList`, 'POST', params)

//订单详情
export const getOrderInfo = params => request.globalRequest(`/api/v1/appOrder/getOrderInfo`, 'GET', params)

//创建订单
export const createOrder = params => request.globalRequest(`/api/v1/appOrder/order/create`, 'POST', params)

//开盲盒
export const openBlindBox = params => request.globalRequest(`/api/v1/appOrder/openBlindBox`, 'POST', params)

//抽一张纸条
export const getPaper = params => request.globalRequest(`/api/v1/appOrder/paper/get`, 'POST', params)

//盲盒回收
export const recycleBlindBox = params => request.globalRequest(`/api/v1/appOrder/recycleBlindBox`, 'POST', params)

//申请发货
export const applyDeliver = params => request.globalRequest(`/api/v1/appOrder/applyDeliver`, 'POST', params)

//申请发货
export const queryOrderTackList = params => request.globalRequest(`/api/v1/appOrder/queryOrderTackList`, 'GET', params)